package cn.wenhaha.common.config;

import cn.hutool.system.SystemUtil;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.File;

/**
 * 全局配置类
 * 
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "dscms")
public class Global
{
    private static String config;
    private  String install;
    private static  String dataLib;
    private static  String coreLib;


    /** 梗目录 **/
    private static String rootPath= SystemUtil.getUserInfo().getCurrentDir();

    public static String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public String getInstall() {
        return install;
    }

    public void setInstall(String install) {
        this.install = install;
    }

    public static String getRootPath() {
        return rootPath;
    }

    public static void setRootPath(String rootPath) {
        Global.rootPath = rootPath;
    }

    public static String getDataLib() {
        return dataLib;
    }

    public static String getCoreLib() {
        return coreLib;
    }

    public  void setCoreLib(String coreLib) {
        Global.coreLib = coreLib;
    }

    public void setDataLib(String dataLib) {
        this.dataLib = dataLib;
    }
}
